<!DOCTYPE html>
<html>
<head>
    <title>Lotus ChainWatch</title>
    <link rel="stylesheet" type="text/css" href="main.css">
</head>
<body>
<div class="Index">
    <div class="Index-header">
        <div>
            <span>Lotus ChainWatch</span>
        </div>
    </div>
    <div class="Index-nodes">
        <div class="Index-node">
            <b>{{countCol "actors" "id"}}</b> Actors;
            <b>{{countCol "miner_heads" "addr"}}</b> Miners;
            <b>{{netPower "slashed_at = 0" | sizeStr}}</b> Power
            (<b>{{netPower "" | sizeStr}}</b> Total;
            <b>{{netPower "slashed_at > 0" | sizeStr}}</b> Slashed)
        </div>
        <div class="Index-node">
            {{count "messages"}} Messages; {{count "actors"}}  state changes
        </div>
        <div class="Index-node">
            {{count "id_address_map" "id != address"}} <a href="keys.html">Keys</a>;
            E% FIL in wallets; F% FIL in miners; M% in market; %G Other actors; %H FIL it treasury
        </div>
        <div class="Index-node">
            {{$maxH := queryNum "select max(height) from blocks inner join blocks_synced bs on blocks.cid = bs.cid"}}

            {{count "blocks"}} <a href="blocks.html?start={{$maxH}}">Blocks</a>; Current Height: {{$maxH}};
        </div>
    </div>
</div>
</body>
</html>
